﻿using System;
using UnityEngine;

// Token: 0x0200001B RID: 27
public class MadnessLevelArenaEnter : MonoBehaviour
{
	// Token: 0x0600007A RID: 122 RVA: 0x0000D7C4 File Offset: 0x0000B9C4
	public void OnTriggerEnter2D(Collider2D collision)
	{
		DamageReceiver damageReceiver;
		if (collision.TryGetComponent<DamageReceiver>(out damageReceiver) && damageReceiver.body == GameManager.main.playerBody)
		{
			GameManager.main.sceneLoadTarget = "Madness2";
			GameManager.main.fadingOut = true;
		}
	}
}
